﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceStack.DataAnnotations;

namespace LPY.LeHealth.DTO
{
    /// <summary>
    /// 医院表
    /// </summary>
    [Alias("hospital")]
    public  class HospitalDTO
    {
        [AutoIncrement]
        public int Id { get; set; }

        /// <summary>
        /// 医院名称
        /// </summary>
        public string  Name { get; set; }

        [References(typeof(GradeDTO))]
        public int  GradeId { get; set; }

        [Reference]
        public GradeDTO Grade { get; set; }

        /// <summary>
        /// 医院介绍
        /// </summary>
        public string  Detail { get; set; }

        /// <summary>
        /// 区域ID
        /// </summary>
        [References(typeof(AreaDTO))]
        public int AreaId { get; set; }

        [Reference]
        public AreaDTO Area { get; set; }

        /// <summary>
        /// 医院地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 医院经营时间段
        /// </summary>
        public string ExamTime { get; set; }

        /// <summary>
        /// 提前预约天数
        /// </summary>
        public int AppointmentDay { get; set; }

        /// <summary>
        /// 医院图片
        /// </summary>
        public string Thumb { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
